const fs = require('fs')
require('http').createServer((req,res)=>{
    if(req.url === '/'){
        let data = fs.readFileSync('./project/html/home.html')
        res.end(data)
    }/*else if (req.url === '/home'){
        let data = fs.readFileSync('./html/'+req.url)
        res.end(data)
    }*/
   else if(req.url.includes('.html')){
        let data = fs.readFileSync('./project/html'+req.url)
        res.end(data)
    }else{
        let data = fs.readFileSync('./project/'+req.url)
        res.end(data)
    }
}).listen(33333)